import request from '@/utils/request'

// 查询人脸识别列表
export function listFace_device(query) {
  return request({
    url: '/business/face_device/list',
    method: 'get',
    params: query
  })
}

// 查询人脸识别详细
export function getFace_device(faceDeviceId) {
  return request({
    url: '/business/face_device/' + faceDeviceId,
    method: 'get'
  })
}

// 新增人脸识别
export function addFace_device(data) {
  return request({
    url: '/business/face_device',
    method: 'post',
    data: data
  })
}

// 修改人脸识别
export function updateFace_device(data) {
  return request({
    url: '/business/face_device',
    method: 'put',
    data: data
  })
}

// 删除人脸识别
export function delFace_device(faceDeviceId) {
  return request({
    url: '/business/face_device/' + faceDeviceId,
    method: 'delete'
  })
}

// 导出人脸识别
export function exportFace_device(query) {
  return request({
    url: '/business/face_device/export',
    method: 'get',
    params: query
  })
}
